﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="MasterPanel.aspx.cs" Inherits="Medianamik.UI.Web.MasterPanel" MasterPageFile="~/Medianamik/MasterPages/MedianamikMaster.Master" %>

<asp:Content ID="HeaderContentHolder" runat="server" ContentPlaceHolderID="HeaderContentHolder">
	<style type="text/css">
		#wrapper { background-image: none; }
	</style>
</asp:Content>

<asp:Content ID="CenterContent" ContentPlaceHolderID="CenterContent" runat="server">

	<div id="AccCorps">
		
		<div id="AccBlocInfo">
			<div class="Contenu">
				<p><strong><asp:Literal runat="server" Text="<%$ Resources: Medianamik_Global, UserInfo_Greeting %>" /> <%= Medianamik.Core.MedianamikContext.Current.Profile.FullName %>,</strong> <asp:Literal ID="Literal1" runat="server" Text="<%$ Resources: Medianamik_Global, UserInfo_LastAccess %>" /> <%= Medianamik.Core.MedianamikContext.Current.Profile.LastLoginDate.ToString()  %>&nbsp;&nbsp;&nbsp;&nbsp; <asp:HyperLink ID="lnkModifyPassword" NavigateUrl="/medianamik/modalwindows/ModifyPasswordWindow.aspx" runat="server" Target="ModifyPasswordWindow" onclick="GetRadWindowManager().Open(null, 'ModifyPasswordWindow');" Text="<%$ Resources: Medianamik_Global, ModifyPassword %>" />&nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;<a href="/Medianamik/UserPreferences.aspx?returnUrl=<%= HttpUtility.UrlEncode(Request.Url.ToString()) %>" ><asp:Literal runat="server" Text="<%$ Resources: Medianamik_Global, UtilityLinks_Preferences %>"></asp:Literal></a></p>
				<%-- 
				<ul>
					<li class="PremierItem"><a href="#">1774 <asp:Literal ID="Literal3" runat="server" Text="<%$ Resources: Medianamik_Global, UserInfo_NbActivePage %>" /></a> / <a href="#">4 <asp:Literal ID="Literal4" runat="server" Text="<%$ Resources: Medianamik_Global, UserInfo_NbInactivePage %>" /></a></li>
					<li><a href="#">41 <asp:Literal ID="Literal5" runat="server" Text="<%$ Resources: Medianamik_Global, UserInfo_NbDraft%>" /></a></li>
					<li class="DernierItem"><a href="#">7 <asp:Literal ID="Literal7" runat="server" Text="<%$ Resources: Medianamik_Global, UserInfo_NbActiveUser%>" /></a> / <a href="#">0 <asp:Literal ID="Literal6" runat="server" Text="<%$ Resources: Medianamik_Global, UserInfo_NbInactiveUser%>" /></a></li>
				</ul>
				--%>
			</div>
			<p class="OutilAbsolunet"><img src="/Medianamik/images/Logo_IntAbsolunet.png" alt="" name="OutilAbsolunet" /></p>
		</div>

		<div id="AccContenu">

			<asp:SiteMapDataSource runat="server" ID="SiteMapDataSource"  ShowStartingNode="false" />
			<asp:ListView ID="ListViewBlocks" runat="server" DataSource="<%# GetFirstLevel() %>"  >
				<LayoutTemplate>
					<asp:PlaceHolder ID="itemPlaceHolder" runat="server"></asp:PlaceHolder>
				</LayoutTemplate>
				<ItemTemplate>
					<div class="BlocsOutils">
						<h2><%# Eval("Title") %></h2>
						<p><strong><%# Eval("Description") %></strong></p>
						<asp:ListView runat="server" DataSource="<%#GetSecondLevel((SiteMapNode)Container.DataItem) %>">
							<LayoutTemplate >
								<ul>
									<asp:PlaceHolder runat="server" ID="itemPlaceholder"></asp:PlaceHolder>
								</ul>
							</LayoutTemplate>
							<ItemTemplate >
								<li><a href="<%# Eval("Url") %>" title="<%# Eval("Title") %>"><%# Eval("Title") %></a></li>
							</ItemTemplate>
						</asp:ListView>

						<img src="<%# (Container.DataItem as SiteMapNode)["MasterPanelImageUrl"]  %>" alt="" class="IconeOutil" />
					</div>
				</ItemTemplate> 
			</asp:ListView>	

		</div>
		
		<div class="clear"></div>
	</div>
</asp:Content>
